<template>
	<view>
		<u-search placeholder="城市·车站的中文或拼音" v-model="keyword"></u-search>
		<qiao-address :letter="'A'" @confirm="confrim"></qiao-address>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: ''
			}
		},
		methods: {
			confrim(e) {
				console.log(e) //=>{"code": "310100","name": "上海市"}
				uni.$emit('update2', {
					msg: e.name
				})
				uni.navigateBack({
					delta: 1
				})
			},

		}
	}
</script>

<style>

</style>